/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c) 2002, GeoVISTA Center
 * Licensed under Simplified BSD License
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 * @original author: jin Chen 
 * @author: jin Chen 
 * @date: Feb 13, 2008$
 * @version: 1.0
 */
package edu.psu.geovista.common.awt.event;

import edu.psu.geovista.app.vit.pub.utils.VitUtils;

public class Coordinator extends javax.swing.JPanel {
   /* boolean selection;
    boolean indication;
    boolean color;
    boolean classification;
    boolean dataChange;*/

    /** Creates new form Coordinator */
    public Coordinator() {
        initComponents();
    }

    public boolean isSelection() {
        return this.selectionCb.isSelected();
    }

    public void setSelection(boolean selection) {
        this.selectionCb.setSelected(selection);
    }

    public boolean isIndication() {
        return indicationCb.isSelected();
    }

    public void setIndication(boolean indication) {
        this.indicationCb.setSelected(indication);
    }

    public boolean isColor() {
        return colorCb.isSelected();
    }

    public void setColor(boolean color) {
        this.colorCb.setSelected(color);
    }

    public boolean isClassification() {
        return classificationCb.isSelected();
    }

    public void setClassification(boolean classification) {
        this.classificationCb.setSelected(classification);
    }

    public boolean isDataChange() {
        return dataChangeCb.isSelected();
    }

    public void setDataChange(boolean dataChange) {
        this.dataChangeCb.setSelected(dataChange);
    }
    public void show(){
        VitUtils.showDialog(null,this,"Set Coordination",null);

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        selectionCb = new javax.swing.JCheckBox();
        indicationCb = new javax.swing.JCheckBox();
        colorCb = new javax.swing.JCheckBox();
        classificationCb = new javax.swing.JCheckBox();
        dataChangeCb = new javax.swing.JCheckBox();

        setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Coordinator", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12)));

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Response to following events"));

        selectionCb.setSelected(true);
        selectionCb.setText("Selection");
        selectionCb.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                selectionCbActionPerformed(evt);
            }
        });

        indicationCb.setSelected(true);
        indicationCb.setText("Indication");

        colorCb.setSelected(true);
        colorCb.setText("Color");

        classificationCb.setSelected(true);
        classificationCb.setText("Classification");

        dataChangeCb.setSelected(true);
        dataChangeCb.setText("Data Change");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(selectionCb)
                    .addComponent(indicationCb)
                    .addComponent(colorCb)
                    .addComponent(classificationCb)
                    .addComponent(dataChangeCb))
                .addContainerGap(116, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(selectionCb)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(indicationCb)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(colorCb)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(classificationCb)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(dataChangeCb)
                .addContainerGap(39, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>

    private void selectionCbActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
}


    // Variables declaration - do not modify
    private javax.swing.JCheckBox classificationCb;
    private javax.swing.JCheckBox colorCb;
    private javax.swing.JCheckBox dataChangeCb;
    private javax.swing.JCheckBox indicationCb;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JCheckBox selectionCb;
    // End of variables declaration

    
}
